package com.jielin.handling.page;

import com.alibaba.fastjson.JSONObject;

/**
 * 类名称：DataGrid   
 * 创建人：zhanglongdeng@163.com
 * 创建时间：2018年12月1日 下午1:13:11    
 * 类描述：表格实体对象
 */
public class DataGrid {
	private long total;
	private Object list;
	
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public Object getRows() {
		return list;
	}
	public void setRows(Object rows) {
		this.list = rows;
	}
	
	public DataGrid() {}

	public DataGrid(long total,Object list) {
		this.total = total;
		this.list = list;
	}
	
	public static String convert(long total,Object list) {
		return JSONObject.toJSONString(new DataGrid(total,list));
	}
}

